<?php
namespace app\index\controller;

use app\index\model\Account;
use think\Request;

class Accounts extends Base
{
    //账号资金表
    private $Account;
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->Account = new Account();
    }

    /** 账号资金表
     * @return mixed
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function index()
    {
        $map= array();
        $key = input('get.key');
        $list = $this->Account->query_list($map);
        $this->assign('key',$key);
        $this->assign('list',$list);
        return $this->fetch();
    }
}